home *** CD-ROM | disk | FTP | other *** search
- Path: yoyo.cc.monash.edu.au!not-for-mail
- From: nallan@yoyo.cc.monash.edu.au (Nick Allan)
- Newsgroups: comp.lang.c
- Subject: Processing text file
- Date: 2 Apr 1996 12:47:37 GMT
- Organization: Monash University
- Message-ID: <4jr7l9$6on@harbinger.cc.monash.edu.au>
- NNTP-Posting-Host: yoyo.cc.monash.edu.au
- X-NNTP-Posting-User: nallan
- X-Newsreader: TIN [UNIX 1.3 950823BETA PL0]
-
- Hi everyone
- I'm kind of new to c, so please be gentle.
- I'm trying to write a program that reads a text file, a line at a time,
- does some processing and outputs to another text file.
- The input text file has the same format for every line with the exception
- of on ocation the last field is sometimes blank.
- The lines are not the same length.
-
- Can someone give me ideas on the best way to handle this. I've tried a
- few methods
- but I can't seem to get it to work. My main problem is the variable
- length in the input file.
-
- Thanks for any help anyone can give me.
- I'd appriciate email replies.
-
- Regards Nick
- nallan@yoyo.cc.monash.edu.au
- guardian@alexia.net.au
-
-
-